<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tlds/fmt.tld" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tlds/fn.tld" prefix="fn" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    request.setAttribute("path", path);
    request.setAttribute("basePath", basePath);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <link rel="stylesheet" type="text/css" href="${path}/ext/resources/css/ext-all.css"/>
    <script type="text/javascript" src="${path}/ext/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="${path}/ext/ext-all.js"></script>
    <script type="text/javascript" src="${path}/jscore/loadJs.js"></script>
    <script type="text/javascript">
        //Ext.util.CSS.swapStyleSheet("theme", "${path}/ext/resources/css/ext/xtheme-silverCherry.css");
        //Ext.util.CSS.swapStyleSheet("theme", "${path}/ext/resources/css/xtheme-slickness2.css");
    </script>
    <title>My Site - <decorator:title default="Welcome!"/></title>
    <style type="text/css">
        .x-tree-node-icon {
            display: none;
        }

        body {
            font-size: 12px;
        }
    </style>
    <script type="text/javascript">
        var path = "<%=path%>";
        var basePath = "<%=basePath%>"


        /**
         * 设置查询参数
         * @param obj   原始params
         */
        function setFilter(op, obj) {
            var page_fiter = [];

            try {
            <c:if test="${not empty page_fiter}">
                page_fiter = ${page_fiter};
            </c:if>

                var fiter = page_fiter[op]

                if (fiter.length > 0) {
                    for (i = 0; i < fiter.length; i++) {
                        obj[fiter[i][0]] = fiter[i][1];
                    }
                }
            }catch(e){
                
            }

        }
    </script>
    <decorator:head/>
</head>

<body>
<decorator:body/>
</body>
</html>